package com.hy.mydesktop.client.component.meta;

import java.util.List;
import java.util.Map;

import com.extjs.gxt.ui.client.data.BaseModel;
import com.extjs.gxt.ui.client.data.ModelData;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：花宏宇</li>
 * <li>设计日期：2010-10-9；时间：上午11:45:26</li>
 * <li>类型名称：GridPagingLoadResultModel</li>
 * <li>设计目的：用于Rpc调用中，对于分页Grid的PagingLoadResult对象，进行ModelData的封装</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class GridPagingLoadResultModel extends BaseModel {

	/**
	 * <ul>
	 * <li>开发作者：花宏宇</li>
	 * <li>设计日期：2010-10-20；时间：下午01:51:04</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long serialVersionUID = -6302368697828559883L;

	public GridPagingLoadResultModel() {
		super();
	}

	public GridPagingLoadResultModel(List<MyBaseModel> dataList, int offset, int totalLength) {
		super();
		this.setDataList(dataList);
		this.setOffset(offset);
		this.setTotalLength(totalLength);
	}

	public GridPagingLoadResultModel(Map<String, Object> properties) {
		super(properties);
	}

	public List<ModelData> getDataList() {
		return super.get("dataList");
	}

	public void setDataList(List<MyBaseModel> list) {
		super.set("dataList", list);
	}

	public int getOffset() {
		return super.get("offset");
	}

	public int getTotalLength() {
		return super.get("totalLength");
	}

	public void setOffset(int offset) {
		super.set("offset", offset);
	}

	public void setTotalLength(int totalLength) {
		super.set("totalLength", totalLength);
	}

}
